package client;

import java.rmi.*;
import java.rmi.registry.*;

public class MyRemoteClient {

	public static void main(String[] args){
		new MyRemoteClient().go();
	}
	public void go(){
		try{
//			MyRemoteImpl_Stub ms=new MyRemoteImpl_Stub();
//			Registry registry=LocateRegistry.getRegistry();
			
			MyRemote service=(MyRemote)Naming.lookup("rmi://219.219.124.97/RemoteHello");
			
			String s=service.sayHello();
			System.out.println(s);
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}
}
